package com.qf.pojo;

/**
 * @author 高圆圆
 * @date 2022/10/9 16:19
 * 老师类
 */
public class Teacher {

    //mybatis需要实体类的属性名称和数据库表的字段一一对应(映射)
    private int id ; //编号
    private String teaName ; //姓名
    private String gender  ;//性别
    private int  age  ;//年龄
    private String address ; //地址

    public Teacher() {


    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTeaName() {
        return teaName;
    }

    public void setTeaName(String teaName) {
        this.teaName = teaName;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "id=" + id +
                ", teaName='" + teaName + '\'' +
                ", gender='" + gender + '\'' +
                ", age=" + age +
                ", address='" + address + '\'' +
                '}';
    }
}
